<h1><%= editable_content(
        :content => {
            :element => 'span',
            :text => @image.name,
            :options => {
                :id => "image_name_edit_#{@image.id}",
                :class => 'editable-content'
            }
        },
        :url => {
            :controller => 'images',
            :action => 'update_ajax',
            :id => @image.id,
            :field_name => 'name'
        },
        :ajax => {
            :okButton => false,
            :cancelLink => false,
            :submitOnBlur => true,
            :size => @image.name.size
        }
    )%></h1>
<p class="images_tags"><span id="tags"><strong>Tags &raquo;</strong></span>
    <%= editable_content(
                :content => {
                    :element => 'span',
                    :text => @image.tag_list,
                    :options => {
                        :id => "image_name_edit_#{@image.id}",
                        :class => 'editable-content'
                    }
                },
                :url => {
                    :controller => 'images',
                    :action => 'update_ajax',
                    :id => @image.id,
                    :field_name => 'tag_list'
                },
                :ajax => {
                    :okButton => false,
                    :cancelLink => false,
                    :submitOnBlur => true,
                    :size => 25,
                    :externalControl => "'tags'"
                }
    )%> 
    </p>
<% if @image.small_file != nil %>
    <h3>Small/Thumbnail size</h3>
    <%=image_tag("/pictures/" + @image.small_file)%>
<% end%>

<% if @image.medium_file != nil %>
    <h3>Medium size</h3>
    <%= image_tag("/pictures/" + @image.medium_file)%>
<% end %>

<% if @image.large_file != nil %>
    <h3>Large size</h3>
    <%= image_tag("/pictures/" + @image.large_file)%>
<% end %>

<% if @image.huge_file != nil %>
    <h3>Huge size</h3>
    <%= image_tag("/pictures/" + @image.huge_file)%>
<% end %>

<div>
<%= link_to 'Back', :action => 'list' %>
</div>
